home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / XML Utilities / Professional Programmer XSL IDE / Xselerator25.msi / Data.Cab / F43246_testMap.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-20  |  856 b   |  30 lines

  1. <xsl:stylesheet version="1.0" 
  2. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:testmap="testmap"
  4. exclude-result-prefixes="xsl testmap"
  5. >
  6.    <xsl:import href="map.xsl"/>
  7.    
  8.    <!-- This transformation must be applied to:
  9.         numList.xml 
  10.     -->
  11.    
  12.    <testmap:testmap/>
  13.  
  14.    <xsl:output omit-xml-declaration="yes" indent="yes"/>
  15.    
  16.    <xsl:template match="/">
  17.      <xsl:variable name="vTestMap" select="document('')/*/testmap:*[1]"/>
  18.      <xsl:call-template name="map">
  19.        <xsl:with-param name="pFun" select="$vTestMap"/>
  20.        <xsl:with-param name="pList1" select="/*/*"/>
  21.      </xsl:call-template>
  22.    </xsl:template>
  23.  
  24.     <xsl:template name="double" match="*[namespace-uri() = 'testmap']">
  25.       <xsl:param name="arg1"/>
  26.       
  27.       <xsl:value-of select="2 * $arg1"/>
  28.     </xsl:template>
  29.  
  30. </xsl:stylesheet>